package com.jiancong.service;

import com.jiancong.domain.ResponseResult;
import com.jiancong.domain.dto.RoleQueryCriteria;
import com.jiancong.domain.dto.RoleRequest;
import com.jiancong.domain.dto.RoleUpdateRequest;
import com.jiancong.domain.entity.Role;

import java.util.List;

/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2024-05-08 19:07:30
 */
public interface RoleService {
    List<String> selectRoleKeyByUserId(Long id);

    List<Role> listAllRoles();

    ResponseResult getRolePageList(RoleQueryCriteria criteria);

    boolean changeRoleStatus(Long id, String status);

    boolean addRole(RoleRequest roleRequest);

    Role getRoleById(Long id);

    boolean updateRole(RoleUpdateRequest request);

    boolean deleteRole(Long id);
}

